import Layout from '../views/layout.vue'  //写在顶部
const routes = [


    {
        path: '/home',
        name: 'home',
        redirect: '/home',
        component: Layout, // 导入组件 Layout
        hidden: true,
        children: [
            {
                path: '/home',
                component: () => import('@/views/MainPage.vue')
            },
            {
                path: '/user',
                component: () => import('@/views/user/user.vue')
            },

            {
                path: '/chat',
                component: () => import('@/views/user/chat.vue')
            },
            {
                path: '/map',
                component: () => import('@/views/map/map.vue')
            },
            {
                path: '/mark',
                component: () => import('@/views/map/mark.vue')
            },
            {
                path: '/data',
                component: () => import('@/views/data/data.vue')
            },
            {
                path: '/order',
                component: () => import('@/views/app/order.vue')
            },
            {
                path: '/item',
                component: () => import('@/views/app/item.vue')
            },
            {
                path: '/article',
                component: () => import('@/views/app/article.vue')
            },
            
        ]
    }

];


export default routes;